<section id="<%=@name%>_index">
  <header>
    <h1>List of <%=@name%>s</h1>
    <a class="back" href="#">Overview</a>
    <a class="button add slideup new_item"  target="show" href="<%="/#{@name}s/new"%>">+</a>
  </header>
  <ul class="rounded" id="search_form">
  <li><form><input type="text" name="name" placeholder="Text" id="search" /></form></li>
  </ul>

   <ul class="rounded" id="result">

<%=render '/search'%>
 </ul>
<script>
  $(".new_item").click(function(e){e.preventDefault();$('#show').load(this.href)});
  $(".show_item").click(function(e){e.preventDefault();$('#show').load(this.href)});
  </script>
  </section>